<?php
$config['roles'] = array('registrar','teacher','admin','evaluation','finance','president','cashier','hrd','librarian','custodian','guidance','encoder','vice_principal');
/*
\ Assign roles or user type that can only access the profile controller
\ and view the student profile
*/
$config['secure_page_profile'][] = 'admin';
$config['secure_page_profile'][] = 'cashier';
$config['secure_page_profile'][] = 'teacher';
$config['secure_page_profile'][] = 'registrar';
$config['secure_page_profile'][] = 'evaluation';
$config['secure_page_profile'][] = 'vice_principal';
$config['secure_page_profile'][] = 'finance';
$config['secure_page_profile'][] = 'president';
$config['secure_page_profile'][] = 'guidance';
$config['secure_page_profile'][] = 'encoder';


/*
\ Assign roles or user type that can only update the student profile 
\ on the profile controller
*/
$config['auth_update_student_profile'][] = 'admin';
$config['auth_update_student_profile'][] = 'registrar';
$config['auth_update_student_profile'][] = 'evaluation';
$config['auth_update_student_profile'][] = 'vice_principal';
$config['auth_update_student_profile'][] = 'guidance';
$config['auth_update_student_profile'][] = 'encoder';

/*
\ Assign roles or user type that can only see the view fee link on the profile controller
\ and view student fees
*/
$config['auth_link_to_view_fees'][] = 'admin';
$config['auth_link_to_view_fees'][] = 'cashier';
$config['auth_link_to_view_fees'][] = 'registrar';
$config['auth_link_to_view_fees'][] = 'finance';
$config['auth_link_to_view_fees'][] = 'president';

/*
\ Assign roles or user type that can only access the fee controller
\ and update the student fees
*/
$config['auth_to_update_fees'][] = 'cashier';
$config['auth_to_update_fees'][] = 'finance';

/*
\ Assign roles or user type that can only access the search controller
\ and search students
*/
$config['secure_page_search'][] = 'cashier';
$config['secure_page_search'][] = 'admin';
$config['secure_page_search'][] = 'registrar';
$config['secure_page_search'][] = 'teacher';
$config['secure_page_search'][] = 'evaluation';
$config['secure_page_search'][] = 'vice_principal';
$config['secure_page_search'][] = 'finance';
$config['secure_page_search'][] = 'president';
$config['secure_page_search'][] = 'guidance';
$config['secure_page_search'][] = 'encoder';

/*
\ Assign roles or user type that can only delete the search controller
\ and search students
*/
$config['auth_to_delete_student'][] = 'admin';
$config['auth_to_delete_student'][] = 'registrar';

/*
\ Assign roles or user type that can only access the enrollment transaction slip entry the search controller
\ and search students
*/
$config['enrollment_transaction_slip'][] = 'cashier';
$config['enrollment_transaction_slip'][] = 'finance';
$config['enrollment_transaction_slip'][] = 'vice_principal';
$config['enrollment_transaction_slip'][] = 'registrar';
$config['enrollment_transaction_slip'][] = 'guidance';


/*
\ Look at Student Grades and profile
\ 
*/
$config['view_subject_grade'][] = 'registrar';
$config['view_subject_grade'][] = 'evaluation';
$config['view_subject_grade'][] = 'vice_principal';
$config['view_subject_grade'][] = 'teacher';
$config['view_subject_grade'][] = 'president';
$config['view_subject_grade'][] = 'guidance';
$config['view_subject_grade'][] = 'encoder';


/*
\ edit student subject grades all
\ 
*/
$config['edit_subject_grade'][] = 'registrar';
$config['edit_subject_grade'][] = 'encoder';

/*
\ 	Roles that can only set FEES for each student on the student_fees controller
\ 
*/
$config['auth_link_to_CRUD_fees'][] = 'finance';
$config['auth_link_to_CRUD_fees'][] = 'president';
$config['auth_link_to_CRUD_fees'][] = 'admin';

/*
\ 	Roles that can only receive payments
\ 
*/
$config['auth_recieve_payment'][] = 'finance';
$config['auth_recieve_payment'][] = 'cashier';

/*
\ 	Roles that can only update applicant status
*/
$config['applicant_status'][] = 'guidance';
$config['applicant_interview'][] = 'vice_principal';
$config['applicant_recieve_payment'][] = 'finance';
$config['applicant_recieve_payment'][] = 'cashier';
$config['applicant_update_payment'][] = 'finance';
$config['applicant_update_payment'][] = 'cashier';

/*
	Print
*/
$config['print_assessment'][] = 'finance';
$config['print_assessment'][] = 'cashier';

/*
	Registration
*/
$config['student_reservation_payment'][] = 'finance';
$config['student_reservation_payment'][] = 'cashier';

/*
	Enrollment link from Registrar
*/
$config['enrollment_registrar'][] = 'registrar';
$config['enrollment_registrar'][] = 'encoder';